package camel.first.api.datastore.dao;

import camel.first.api.datastore.dao.exceptions.NonexistentEntityException;
import camel.first.api.datastore.dao.exceptions.PreexistingEntityException;
import camel.first.api.datastore.internal.entity.PromotionBuildsEntity;

import javax.persistence.EntityManager;

/**
 * Created by IntelliJ IDEA.
 * User: Richard
 * Date: 4/19/11
 * Time: 12:19 AM
 * To change this template use File | Settings | File Templates.
 */
public interface PromotionBuildsEntityJpaController {
    EntityManager getEntityManager();

    void create(PromotionBuildsEntity promotionBuildsEntity) throws PreexistingEntityException, Exception;

    void edit(PromotionBuildsEntity promotionBuildsEntity) throws NonexistentEntityException, Exception;

    void destroy(int id) throws NonexistentEntityException;

    PromotionBuildsEntity findPromotionBuildsEntity(int id);
}
